home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
prog
/
bltc13.zip
/
BORLAND.ZIP
/
FIX103.TXT
< prev
next >
Wrap
Text File
|
1993-01-02
|
1KB
|
29 lines
26-Sep-92
To fix the problem with Borland C compilers in large/huge memory models
do the following:
1. Create a new directory.
2. Copy BULLET.LIB 1.02 to it
3. Copy this fix's files to it (DOSFNXB.OBJ and MEMCXB.OBJ)
4. Do C>lib bullet.lib -+dosfnxb +memcxb; (exactly!)
That's it. BULLET.LIB is updated and should run as expected. The memcxb.obj is
written for LARGE and HUGE memory models, only. With a couple conditionals,
MEDIUM could be used but it's not necessary.
MEMCXB.ASM is included. Makes for easy programmer changes of this non-
standard module (non-standard in that it requires a C runtime library).
--The reason DOSFNXB.OBJ is removed and replaced (-+dosfnxb) from the .LIB
is that xb$malloc, xb$free, and xb$SetHandleCount are in that module. The new
DOSFNXB.OBJ does not have these. These routines have been put in their own
module, MEMCXB.OBJ, which is added to the library (+memcxb).
BTW, the xb$SetHandleCount no longer works. I'll have to do it manually (
(which I had to do in previous code since INT21/67 is available only in DOS
3.3+) but that's no problem. If you call INITXB with IP.jftmode=1, error 1 is
return for invalid function.
chh